<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">

<head>
    <title th:text="${pageTitle}"></title>
    <div data-th-replace="layout/head-top"></div>
</head>
<body>

    <div class="m-t-lg">
        <dl class="dl-horizontal">
            <dt>模块名称：</dt>
            <dd class="m-r"><span class="fs12 c-4e" th:text="${mould['mouldName']}"></span> </dd>
        </dl>
        <div class="hr-line-dashed"></div>
        <dl class="dl-horizontal">
            <dt>模块专业/科目：</dt>
            <dd class="m-r">
                <th:block th:if="!${#lists.isEmpty(mould['subjectList'])}">
                    <span class="fs12 c-4e" th:each="subject,subIndex : ${mould['subjectList']}">
                        <th:block th:text="${subject['subjectName']}+'/'"></th:block>
                        <th:block th:if="!${#lists.isEmpty(subject['childSubjectList'])}" th:each="child,index : ${subject['childSubjectList']}">
                            <th:block th:if="${index.last} == false" th:text="${child['subjectName']}+'/'"></th:block>
                            <th:block th:if="${index.last} == true" th:text="${child['subjectName']}"></th:block>
                        </th:block>
                        <th:block th:if="${#lists.isEmpty(subject['childSubjectList'])}">全部科目</th:block>
                        <th:block th:if="${subIndex.last}==false" th:utext="'<br/>'"></th:block>
                    </span>
                </th:block>
                <th:block th:if="${#lists.isEmpty(mould['subjectList'])}">
                    <span class="fs12 c-4e">—</span>
                </th:block>
            </dd>
        </dl>
        <div class="hr-line-dashed"></div>
        <dl class="dl-horizontal">
            <dt>模块类型：</dt>
            <dd class="m-r">
                <span class="fs12 c-4e" th:if="${mould['mouldType']}==1">公共</span>
                <span class="fs12 c-4e" th:if="${mould['mouldType']}==2">私有</span>
            </dd>
        </dl>
        <div class="hr-line-dashed"></div>

        <dl class="dl-horizontal">
            <dt>预估素材数：</dt>
            <dd class="m-r"><span class="fs12 c-4e" th:text="${mould['materialNum']}"></span> </dd>
        </dl>
        <div class="hr-line-dashed"></div>
        <dl class="dl-horizontal">
            <dt>关联素材：</dt>
            <dd class="m-r">
                <span th:if="${#lists.isEmpty(mould['couMouldMaterialList'])}" class="fs12 c-4e">未关联任何素材</span>
                <ul th:if="!${#lists.isEmpty(mould['couMouldMaterialList'])}" class="tag-list clearfix">
                    <li th:each="material : ${mould['couMouldMaterialList']}" class="ml10 mb10">
                        <span>
                            <i class="fa fa-circle text-danger"></i>
                            <samp th:text="${material['couMaterial']['name']}+'(id: '+${material['couMaterial']['id']}+')'"></samp>
                        </span>
                    </li>
                </ul>
            </dd>
        </dl>
    </div>
    <div data-th-replace="layout/head-footer"></div>
</body>
</html>